package me.demo.base.controller;

import me.boot.web.common.template.impl.SuperControllerImpl;
import me.boot.web.common.template.model.QueryParam;
import me.boot.web.common.template.model.Result;
import me.demo.base.dto.SysUserDTO;
import me.demo.base.entity.SysUser;
import me.demo.base.service.SysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Sylar
 * @since 2021-10-31
 */
@RestController
@RequestMapping("/sys-user")
public class SysUserController extends SuperControllerImpl<Long, SysUser, SysUserService, SysUserDTO> {

    @GetMapping("/all")
    public Result<?> getAll() {
        QueryParam param = new QueryParam();
        param.setProps("id, name");
        return getList(param);
    }

}
